Serial Listener
interface SerialListener
Interface for receiving asynchronous events and data from a serial port connected to the RevelDigital player.
This listener allows applications to react to various states of a serial communication channel, such as when the port is ready for communication, when new data is received, or when the port connection is stopped.
Implementations of this interface can be registered with a component managing serial port interactions (e.g., using an addSerialListener(SerialListener listener, int port)
method on a serial port manager) to process incoming data or respond to port status changes.
Typical use cases include:
- Receiving data from external hardware (sensors, payment terminals, control systems).
- Monitoring the status of serial connections.
- Implementing custom serial communication protocols.